package org.jsrml.core.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;
import org.jsrml.common.persistence.StringIdBaseEntity;

/**
 * 变更记录表
 * @author 张剑
 *
 */
@DynamicUpdate
@Entity
@Table(name = M.TABLE_PREFIX + "CHAGE_RECORD")
@SuppressWarnings("serial")
public class ChageRecord extends StringIdBaseEntity {
	
	private DomainLink domainLink;
	
	@Column(name = "DESRC", columnDefinition = M.TEXT_COLUMN)
	private String desrc;
	
	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_DATE", columnDefinition = M.DATE_COLUMN)
	private Date createDate;
	
	@Column(name = "CREATE_BY", length = 64)
	private String createBy;

	public DomainLink getDomainLink() {
		return domainLink;
	}

	public void setDomainLink(DomainLink domainLink) {
		this.domainLink = domainLink;
	}

	public String getDesrc() {
		return desrc;
	}

	public void setDesrc(String desrc) {
		this.desrc = desrc;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	
}
